<?php

/**
 * @author edson5
 * @copyright 2012
 */

$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura/MDHoteles";
$ruta2=$_SERVER['DOCUMENT_ROOT']."/viVentura";




include_once("$ruta/conf/CConfig.php");
$id=$_GET["id"];
//$id="El Gran Marques.docx";
$enlace =$ruta."/".$id;
header("Content-Disposition: attachment; filename=".$id."\n\n");
header("Content-Type: application/octet-stream");
header("Content-Length: ".filesize($enlace));
readfile($enlace);
//unlink($enlace);
?>

